import { useLocation } from 'react-router-dom'
import './index.scss'

function Search(props) {
	const location = useLocation()
	const { state } = location

	return (
		<div className="search-result">
			这是搜索的结果：<span className='color-info'>{state?.input || 'null'}</span>
		</div>
	)
}

export default Search
